# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=http-traceroute
pkgver=0.5
pkgrel=5
groups=('blackarch' 'blackarch-networking' 'blackarch-recon')
pkgdesc='This is a python script that uses the Max-Forwards header in HTTP and SIP to perform a traceroute-like scanning functionality.'
arch=('any')
url='http://packetstormsecurity.com/files/107167/Traceroute-Like-HTTP-Scanner.html'
license=('custom:unknown')
depends=('python2')
source=("https://dl.packetstormsecurity.net/UNIX/scanners/HTTP-Traceroute-v${pkgver//0./}.py.txt")
sha512sums=('9489a3e8831fcb2e4c333dc2d56928c2b0fc1eb80688d2299081f0216410847ace80b97b719d1a9633467dfe010c47044749b5f80094dc12276cfd6905e327b9')

prepare() {
  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \
    HTTP-Traceroute-v${pkgver//0./}.py.txt
}

package() {
  install -Dm 755 HTTP-Traceroute-v${pkgver//0./}.py.txt \
    "$pkgdir/usr/bin/$pkgname"
}

